import request from "@/utils/directSellingRequest.js";
import {
	shop_ht,
	HTTP_REQUEST_URL_ZX,
	IMG_URL,
	HEADER,
} from '@/config/app_member.js';

// 获取img路径
export function getImgpath(data) {
	return request.get("shop_ht",shop_ht + "/shop_ht/vt/getImgpath.do", data,{ noAuth: true });
}

// 产品组合类型列表接口
export function getPackageCategoryList(data) {
	return request.get("shop_ht",shop_ht + "/shop_ht/packageCategoryList.do", data,{ noAuth: true });
}

//产品组合列表接口
export function getpackageListDo(data) {
	return request.get("shop_ht",shop_ht + "/shop_ht/packageList.do", data,{ noAuth: true });
}
//获取直销部分产品详情接口
export function getH5PackageInfo(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/packageInfo", data);
}
//获取直销部分用户信息
export function getMemberInfo(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/getMemberInfo");
}

//加入购物车部分
export function getH5AddCart(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/addCart", data);
}
//获取直销部分购物车列表
export function getH5CartPage(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/cartPage", data);
}
//直销部分购物车列表数量变更接口
export function getH5UpdateQty(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/updateQty", data);
}
//直销部分购物车列表数量删除接口
export function getH5DeleteCartProducts(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/deleteCartProducts", data);
}

//获取城市列表
export function getRegionListByParentId(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/getRegionListByParentId", data);
}

//修改个人中心收货地址
export function shippingAddressSubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/shippingAddressSubmit", data);
}

//获取实时明细
export function getSecondBonusData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/secondBonusData", data);
}
//获取日结明细
export function getDayBonusData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/dayBonusData", data);
}
//获取日结明细
export function getCashManageData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/cashManageData", data);
}
//获取周结明细
export function getPeriodBonusData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/periodBonusData", data);
}
//获取特殊补贴数据
export function getSpecialSubsidyData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/specialSubsidyData", data);
}
//获取月结明细数据
export function getMonthBonusDetailsData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/monthBonusDetailsData", data);
}
//获取业绩概况数据
export function getPerFormanceData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/perFormanceData", data);
}
//获取分享顾客数据
export function getIntroductionMembersData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/introductionMembersData", data);
}
//获取钱包余额及福利积分数据
export function getWalletBalance(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/walletBalance", data);
}
//获取现金充值列表
export function getCashValueData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/cashValueData", data);
}
//添加现金充值数据
export function getCashRechargeSubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/cashRechargeSubmit?optAmount="+data.optAmount+"&rechargeWay="+data.rechargeWay+"&forMemberMemo="+data.forMemberMemo+"&rechargeName="+data.rechargeName+"&rechargeAccount="+data.rechargeAccount+"&paymentTime="+data.paymentTime+"&type="+data.type);
}

//上传图片
export function getChangeMemberInfoImage(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/changeMemberInfoImage", data);
}
//获取转入明细
export function getTransferInquire(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/transferInquire");
}
//获取转出明细
export function getTransferOutInquire(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/transferOutInquire");
}
//获取注册会员列表
export function getRegistMembersData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/registMembersData",data);
}
//获取操作记录
export function getOperationRecordData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/operationRecordData",data);
}
//获取提成收入明细
export function getMemberDailyOptAmount(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/getMemberDailyOptAmount",data);
}
//直销下单接口
export function getUpSubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/upSubmit",data);
}

//直销获取订单详情
export function getOrderInfo(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/orderInfo",data);
}

//直销支付订单
export function getPayOrderSubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/payOrderSubmit",data);
}

//获取消费补贴资格
export function getMemberAchiveSeniority(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/memberAchiveSeniority",data);
}

//获取留言信息
export function getMessageList(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/getMessageList",data);
}
//添加留言内容
export function getMessageAddSubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/messageAddSubmit",data);
}
//添加留言内容
export function setMessageReplySubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/messageReplySubmit",data);
}
//获取留言详情
export function getMessageReplyData(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/getMessageReplyData",data);
}

//获取账号详情
export function getSameMemberList(data) {
	return request.get("shop_member",HTTP_REQUEST_URL_ZX + "/h5/getSameMemberList",data);
}

//获取地区子节点列表
export function getRegionListByParent(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getRegionListByParentId?parentId="+data);
}
//验证服务中心编号
export function checkServiceCode(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/h5CheckRealPlacecodeNull?memberCode="+data);
}
//验证登陆用户名
export function h5CheckMemberCodeNull(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/h5CheckMemberCodeNull?memberCode="+data);
}
//验证登陆密码
export function h5CheckIdPasswordNull(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/h5CheckIdPasswordNull?password="+data);
}
//获取报单产品
export function getPackageData(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getPackageList?countryId=1&saleType="+data);
}
//获取会员信息
export function getMemberByCodeCheckSameCountry(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getMemberByCodeCheckSameCountry?memberCode="+data);
}
//验证会员编号
export function checkMemberCode(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getMemberByCode?memberCode="+data);
}
//获取短信验证码
export function getTransferOutSmsCode(){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getTransferOutSmsCode");
}
//通过推荐人找服务中心
export function getServiceCode(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/getServiceCode?memberCode="+data);
}
//判断是否首推单
export function checkIsFirstIntroOrder(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/getIsThereAnyone?introducerCode="+data);
}
//找推荐人的两个人安置人ab区下最后一层左边编号
export function getIntroducerLastLayer(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/getIntroducerLastLayer?introducerCode="+data);
}

//找推荐人的两个人安置人ab区下最后一层左边编号
export function checkRelationWhileRegister(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/checkRelationWhileRegister?parentCode="+data);
}
//小白升级VIP提交
export function submitUpgradeVip(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/regMallSubmit", data);
}


//获取账号详情
export function mainAccountSubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/mainAccountSubmit",data);
}

//重消商品开始结算
export function setRetailSubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/retailSubmit",data);
}
//重消商品开始结算
export function setRepeatFormSubmit(data) {
	return request.post("shop_member",HTTP_REQUEST_URL_ZX + "/h5/repeatFormSubmit",data);
}

//升级店铺时获取店铺最低购买金额
export function getShopLevel(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/getShopLevel?parentId="+data);
}
//升级店铺时获取升级礼包
export function getShopPackageList(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getShopPackageList",data);
}
//提交升级店铺信息
export function setShopUpSubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/shopUpSubmit",data);
}
//获取提现银行卡信息
export function getMemberBank(){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getMemberBank");
}
//获取开户银行信息
export function getAllBank(){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getAllBank");
}
//修改银行卡信息获取验证码
export function getUpMemberBankSmsCode(mobile){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5new/getUpMemberBankSmsCode?mobile="+mobile);
}
//修改提交银行卡信息
export function setModifyBankSubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/modifyBankSubmit",data);
}
//获取重消奖金收入统计
export function getThreeMonths(){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getThreeMonths");
}

// 绑定银行卡实名认证流程
export function setInvoTlSetRealName(data) {
	return request.get("shop_ht",shop_ht + "/shop_ht/vt/invoTlSetRealName.do", data,{ noAuth: true });
}

//提交转账信息
export function transferOutSubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/transferOutSubmit"+data);
}
//获取一键合成奖励积分数据
export function getSameTransferMemberList(){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getSameTransferMemberList");
}
//获取一键合成奖励积分数据
export function setOneKeyTransferSubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/oneKeyTransferSubmit",data);
}
//设置新增VIP功能
export function setRegMemberSubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/regMemberSubmit",data);
}
//设置新增VIP功能
export function getG2021jcBonusSByMemberCode(data){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getG2021jcBonusSByMemberCode",data);
}
//修改登录密码
export function modifyLoginPasswordSubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/modifyLoginPasswordSubmit",data);
}
//修改支付密码
export function payPasswordSubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/payPasswordSubmit"+data);
}

//通过手机号修改支付密码
export function updatePaySubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/updatePaySubmit"+data);
}
//获取修改支付密码校验码
export function getPaySmsCode(){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getPaySmsCode");
}
//获取申请提现校验码
export function getWithdrawSmsCode(){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getWithdrawSmsCode");
}
//商城小白升级vip返回推荐人编号及接点编号
export function getUpgradeToCoding(){
	return request.get("shop_member", HTTP_REQUEST_URL_ZX + "/h5/getUpgradeToCoding");
}
//提现申请提交
export function setApplyWithdrawSubmit(data){
	return request.post("shop_member", HTTP_REQUEST_URL_ZX + "/h5/applyWithdrawSubmit"+data);
}

//获取电子签约合同详情
export function doElectroicContract(data){
	return request.get("shop_ht", shop_ht + "/vt/invoTlSetvise.do"+data);
}
